package com.iterator;

class MyObject {
    private int index;

    public MyObject(int index) {
        this.index = index;
    }

    @Override
    public String toString() {
        return "MyObject{" +
                "index=" + index +
                '}';
    }
}
